<!--
  Generated template for the NewPage page.

  See http://ionicframework.com/docs/v2/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>登录</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <ion-item>
    <ion-label>切换账号</ion-label>
    <ion-select>
      <ion-option value="f">Female</ion-option>
      <ion-option value="m">Male</ion-option>
    </ion-select>
  </ion-item>
  <form  [formGroup]="loginForm" (ngSubmit)="login(loginForm.value) ">
    <ion-item>
      <ion-label>账号</ion-label>
      <ion-input type="text" formControlName="username" placeholder="手机号/账户名"></ion-input>
      <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">
    </ion-item>
      <ion-item>
        <ion-label>密码</ion-label>
        <ion-input type="password" formControlName="phoneNo" (focus)="IDvalidate($event)" placeholder="密码"></ion-input>
      </ion-item>
      <button ion-button full (click)="login($event)">登录</button>
</form>
  <button ion-button clear (click)="Forget($event)">修改密码</button><button ion-button clear (click)="register($event)">注册</button>
</ion-content>
